package com.example.bottom;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.bottom.sheet.BottomSheet1Activity;
import com.example.bottom.sheet.BottomSheetActivity;
import com.example.bottom.sheet.BottomSheetDialogActivity;
import com.example.bottom.view.BottomNavigation1Activity;
import com.example.bottom.view.BottomNavigationActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void onClick(View view) {
        Intent intent = null;
        switch (view.getId()) {
            case R.id.btn1:
                intent = new Intent(MainActivity.this, BottomNavigationActivity.class);
                break;
            case R.id.btn11:
                intent = new Intent(MainActivity.this, BottomNavigation1Activity.class);
                break;
            case R.id.btn2:
                intent = new Intent(MainActivity.this, BottomSheetActivity.class);
                break;
            case R.id.btn21:
                intent = new Intent(MainActivity.this, BottomSheetDialogActivity.class);
                break;
            case R.id.btn20:
                intent = new Intent(MainActivity.this, BottomSheet1Activity.class);
                break;
        }
        startActivity(intent);
    }
}
